const express = require('express');
const app = express();

const connection = require('./models/order')
app.get('/',(req, res) =>{
    res.send('hello word')
})

app.listen(8000, () =>{
    console.log('服务开启成功')
})

connection.connect();
// connection.query('SELECT * FROM `order`', function (error, results, fields) {
//   if (error) throw error;
//   console.log('The solution is: ', results);
// });
// connection.end();